package com.tangyuan.answer.controller;

import com.tangyuan.answer.service.IWrongGradeService;
import com.tangyuan.common.result.Result;
import com.tangyuan.dto.RemoveBojectDto;
import com.tangyuan.dto.RemoveGradeDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/answer")
public class WrongGradeController {
   @Autowired
   private IWrongGradeService wrongGradeService;
    //删除我创建的学科年纪
    @PostMapping("/removeWrongGrade")
    public Result removeWrongGrade(@RequestHeader(name = "userId",required = false) Long userId, @RequestBody RemoveGradeDto removeGradeDto){
        return wrongGradeService.removeWrongGrade(userId,removeGradeDto);
    }
}
